<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%
    String path=request.getContextPath();
    String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
%>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="description" content="Sona Template">
    <meta name="keywords" content="Sona, unica, creative, html">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="君澜,君澜酒店,君澜度假,君澜大饭店,景澜,景澜酒店" />
    <meta name="description" content="君澜酒店是中国饭店集团10强和全球酒店集团40强。目前旗下主要拥有“君澜度假酒店”（各得其所的休闲生活模式酒店）、“君澜大饭店”（极具时代特征的休闲商务模式酒店）、“景澜酒店”（极具时代特征的多维社区生活模式酒店）三大品牌。" />

    <title>君澜酒店</title>

    <%-- icon图标 --%>
    <link href="https://www.naradahotels.com/favicon.ico" rel="shortcut icon">

    <link href="https://fonts.googleapis.com/css?family=Lora:400,700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Cabin:400,500,600,700&display=swap" rel="stylesheet">

    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css">
    <link rel="stylesheet" href="css/elegant-icons.css" type="text/css">
    <link rel="stylesheet" href="css/flaticon.css" type="text/css">
    <link rel="stylesheet" href="css/owl.carousel.min.css" type="text/css">
    <link rel="stylesheet" href="css/nice-select.css" type="text/css">
    <link rel="stylesheet" href="css/jquery-ui.min.css" type="text/css">
    <link rel="stylesheet" href="css/magnific-popup.css" type="text/css">
    <link rel="stylesheet" href="css/slicknav.min.css" type="text/css">
    <link rel="stylesheet" href="css/style.css" type="text/css">
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
    <!-- 引入 layui.js -->
    <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
 </head>
<style>
    input:focus::-webkit-input-placeholder{
        color: transparent;
    }

</style>
<body>
<!-- Page Preloder -->
<div id="preloder">
    <div class="loader"></div>
</div>


    <jsp:include page="header.jsp" flush="true" />


<section class="hero-section" style="margin-top: 80px">
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <div class="hero-text">
                    <h1>君澜酒店</h1>
                    <p>立志给您带来最完美的入住体验！君澜酒店欢迎您的到来！</p>
                    <a href="aboutUs.jsp" class="primary-btn">了解更多</a>
                </div>
            </div>
            <div class="col-xl-4 col-lg-5 offset-xl-2 offset-lg-1">
                <div class="booking-form">
                    <h3>查询预定酒店信息</h3>
                    <form class="layui-form">
                        <div class="check-date">
                            <label >身份证号码：</label>
                            <input type="text" name="idCard" placeholder="请输入身份证号码："
                                   style="font-size: 12px; color: #000000;">
                        </div>
                        <div class="check-date">
                            <label >联系电话</label>
                            <input type="text" name="tel" placeholder="请输入电话号码："
                                   style="font-size: 12px; color: #000000;">
                        </div>
                        <button class="layui-btn" lay-filter="query" lay-submit="">预定查询</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="hero-slider owl-carousel">
        <img src="img/index/index-4.jpg" alt="" class="hs-item set-bg" style="width: 1920px;height: 770px;">
        <img src="img/index/index-5.jpg" alt="" class="hs-item set-bg" style="width: 1920px;height: 770px;">
        <img src="img/index/index-3.jpg" alt="" class="hs-item set-bg" style="width: 1920px;height: 770px;">
    </div>
</section>

<section class="aboutus-section spad">
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <div class="about-text">
                    <div class="section-title">
                        <span>关于我们</span>
                        <h2>全球连锁的大型商业酒店</h2>
                    </div>
                    <p class="f-para">君澜拥有全球领先的连锁酒店以及自成体系的在线住宿网站。我们接受
                        所有热爱旅行的人。我们在世界各地接触和激励了数百万游客！
                    </p>
                    <p class="s-para">所以无论是预订浪漫的酒店、度假胜地、
                        公寓、客房、还是树屋等等，我们都能提供。</p>
                    <a href="#" class="primary-btn about-btn">Read More</a>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="about-pic">
                    <div class="row">
                        <div class="col-sm-6">
                            <img src="img/about/about1.jpg" alt="" style="height: 390px;width: 275px;">
                        </div>
                        <div class="col-sm-6">
                            <img src="img/about/about2.jpg" alt="" style="height: 390px;width: 275px;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="hp-room-section">
    <div class="container-fluid">
        <div class="hp-room-items">
            <div class="row">
                <div class="col-lg-3 col-md-6">
                    <div class="hp-room-item set-bg" data-setbg="img/room/room3.jpg">
                        <div class="hr-text">
                            <h3>双人床房间</h3>
                            <h2>299$<span>/每晚</span></h2>
                            <table>
                                <tbody>
                                <tr>
                                    <td class="r-o">大小:</td>
                                    <td>30 英尺</td>
                                </tr>
                                <tr>
                                    <td class="r-o">容量:</td>
                                    <td>最大人数 5</td>
                                </tr>
                                <tr>
                                    <td class="r-o">床:</td>
                                    <td>国王的床</td>
                                </tr>
                                <tr>
                                    <td class="r-o">服务:</td>
                                    <td>无线网络、电视、卫生间、…</td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="reserveWebServlet" class="primary-btn">更多细节</a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="hp-room-item set-bg" data-setbg="img/room/room9.jpg">
                        <div class="hr-text">
                            <h3>高质量国王的房间</h3>
                            <h2>1999$<span>/每晚</span></h2>
                            <table>
                                <tbody>
                                <tr>
                                    <td class="r-o">大小:</td>
                                    <td>30 英尺</td>
                                </tr>
                                <tr>
                                    <td class="r-o">容量:</td>
                                    <td>最多5人</td>
                                </tr>
                                <tr>
                                    <td class="r-o">床:</td>
                                    <td>国王的床</td>
                                </tr>
                                <tr>
                                    <td class="r-o">服务:</td>
                                    <td>无线网络、电视、卫生间、…</td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="reserveWebServlet" class="primary-btn">更多细节</a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="hp-room-item set-bg" data-setbg="img/room/room1.jpg">
                        <div class="hr-text">
                            <h3>豪华客房</h3>
                            <h2>799$<span>/每晚</span></h2>
                            <table>
                                <tbody>
                                <tr>
                                    <td class="r-o">大小:</td>
                                    <td>30 英尺</td>
                                </tr>
                                <tr>
                                    <td class="r-o">容量:</td>
                                    <td>最大5人</td>
                                </tr>
                                <tr>
                                    <td class="r-o">床:</td>
                                    <td>国王的床</td>
                                </tr>
                                <tr>
                                    <td class="r-o">服务:</td>
                                    <td>无线网络、电视、卫生间、…</td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="reserveWebServlet" class="primary-btn">更多细节</a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="hp-room-item set-bg" data-setbg="img/room/room2.jpg">
                        <div class="hr-text">
                            <h3>家庭房</h3>
                            <h2>599$<span>/每晚</span></h2>
                            <table>
                                <tbody>
                                <tr>
                                    <td class="r-o">大小:</td>
                                    <td>30 英尺</td>
                                </tr>
                                <tr>
                                    <td class="r-o">容量:</td>
                                    <td>最大5人</td>
                                </tr>
                                <tr>
                                    <td class="r-o">床:</td>
                                    <td>国王的床</td>
                                </tr>
                                <tr>
                                    <td class="r-o">服务:</td>
                                    <td>无线网络、电视、卫生间、…</td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="reserveWebServlet" class="primary-btn">更多细节</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="services-section spad">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="section-title">
                    <span>我们的服务</span>
                    <h2>发现我们的服务</h2>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-036-parking"></i>
                    <h4>旅行计划</h4>
                    <p>入住我们的酒店，我们会根据你的爱好，个性化的给你定制一份最适合你的当地的旅行计划</p>
                </div>
            </div>
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-033-dinner"></i>
                    <h4>宴会服务</h4>
                    <p>无论早中晚，无论何时，我们都保证给入住我们酒店的您提供新鲜、健康以及美味的食物</p>
                </div>
            </div>
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-026-bed"></i>
                    <h4>临时保姆</h4>
                    <p>入住时一切问题，一切需要，我们都有专人负责解决，保证给您带来最美好的住宿体验</p>
                </div>
            </div>
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-024-towel"></i>
                    <h4>洗衣店</h4>
                    <p>每天一早，都有专人来收取您需要清洗的衣物</p>
                </div>
            </div>
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-044-clock-1"></i>
                    <h4>雇用司机</h4>
                    <p>我们酒店给每一间房间的用户，都配备了一位24小时待命的司机，随叫随到，风雨无阻</p>
                </div>
            </div>
            <div class="col-lg-4 col-sm-6">
                <div class="service-item">
                    <i class="flaticon-012-cocktail"></i>
                    <h4>酒和酒吧</h4>
                    <p>一些聒噪的落寞的兴奋的低沉的强势的无助的人。 那酒瓶在左手与右手之间，乖顺地游动着，上下弹跳，温驯而矫情</p>
                </div>
            </div>
        </div>
    </div>
</section>
<!--
<section class="hp-room-section">
    <div class="container-fluid">
        <div class="hp-room-items">
            <div class="row">
                <c:forEach items="${list}" var="room">
                <div class="col-lg-3 col-md-6">
                    <div class="hp-room-item set-bg" data-setbg="<%=basePath%>${room.img}">
                        <div class="hr-text">
                            <h3>${room.type_name}</h3>
                            <h2>${room.price}$<span>/每晚</span></h2>
                            <table>
                                <tbody>
                                <tr>
                                    <td class="r-o">大小:</td>
                                    <td>${room.area} 英尺</td>
                                </tr>
                                <tr>
                                    <td class="r-o">容量:</td>
                                    <td>最大人数 ${room.counts}</td>
                                </tr>
                                <tr>
                                    <td class="r-o">床:</td>
                                    <td>${room.bed}</td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="#" class="primary-btn">在线预定</a>
                        </div>
                    </div>
                </div>
                </c:forEach>
            </div>
        </div>
    </div>
</section> -->

<jsp:include page="foot.jsp" flush="true" />

<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;
        //监听提交
        form.on('submit(query)', function(data){
            var data=data.field;
            $.ajax({
                url: "indexServlet?flag=query",
                type: "post",
                data: data,
                success: function (result) {
                    if (result.code == 0) {
                        // layer.msg("有预定记录，您预定的房间号为"+result.msg);
                        layer.open({
                            title: '您的信息',
                            content: '有预定记录，您预定的房间号为' + result.msg,
                            icon: 1
                        });
                    } else {
                        // layer.msg("不好意思，没有预定信息...")
                        layer.open({
                            title: '不好意思',
                            content: '没有预定信息或正在审核中...',
                            icon: 2
                        });
                    }
                }
            })
            return false;
        });
    });
</script>






<!-- Js Plugins -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.slicknav.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/main.js"></script>
</body>

</html>